package com.chuangzhi.yygh.user.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.websocket.server.PathParam;

@RestController
@RequestMapping("/SentinelNacos")
public class nacosController {
    /**
     * sentinel+Nacos 實現持久化配置流控命令
     * @return
     */
    @GetMapping("/hello")
    public String hello() {
        System.out.println("get SentinelNacos");
        return "hello sentinel";
    }

    @GetMapping("/hello/{name}")
    public String hello(@PathVariable String name) {
        System.out.println("get SentinelNacos");
        return "hello sentinel";
    }
}
